package com.tj.jinzao.activity;

import android.content.Intent;

import com.tj.jinzao.R;
import com.tj.jinzao.base.BaseActivity;
import com.tj.jinzao.manager.UserManager;
import com.tj.jinzao.model.User;

import butterknife.OnClick;

/**
 * 我的认证界面
 * Created by wjy on 2019/1/5.
 */
public class MyIdentificationActivity extends BaseActivity {


    @Override
    public int getLayoutResource() {
        return R.layout.activity_my_identification;
    }

    @Override
    protected int getLeftButtonResId() {
        return R.mipmap.ic_back;
    }

    //直播申请
    @OnClick(R.id.rl_apply_live_layout)
    public void applyLive(){
        User user= UserManager.getInstance().getUser();
        if(user.getVerified()!=2){
            startActivity(new Intent(this, MyIdentificationRealActivity.class));
        }else {
            startActivity(new Intent(this, MyIdentificationLiveActivity.class));
        }


    }

    //实名认证
    @OnClick(R.id.rl_real_name_layout)
    public void realName(){
        startActivity(new Intent(this, MyIdentificationRealActivity.class));
    }

    //身份证认证
    @OnClick(R.id.rl_identification_layout)
    public void identification(){
        startActivity(new Intent(this, MyIdentificationOccupation1Activity.class));
    }
}
